import Service from "./service";

const service = new Service({});

export const getSquareList = (page: number) =>
  service.request(`/user_article/list/${page}/json`, "get");

export const getHostList = () => service.request(`/hotkey/json`, "get");

export const articleQuery = (key: string) =>
  service.request(`/article/query?k=${key}`, "get");

//首页最受欢迎板块  问答：
export const getHomePagePopularQA = () =>
  service.request(`/popular/wenda/json`, "get");
//首页最受欢迎板块  专栏：
export const getHomePagePopularColumn = () =>
  service.request(`/popular/column/json`, "get");
//首页最受欢迎板块  路线：
export const getHomePagePopularRoute = () =>
  service.request(`/popular/route/json`, "get");
